package com.wei.czz.common.vo.admin.dept;

import com.wei.czz.common.jsr303.group.Save;
import com.wei.czz.common.jsr303.group.Update;
import com.wei.czz.common.tool.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wei
 * date: 2022-08-18 22:28:28
 * className: DeptVo 部门请求参数Vo类
 * version: 1.0
 * description:
 */
@Getter
@Setter
public class DeptVo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = { Update.class })
    private Long id;

    /**
     * 父级主键
     */
    @NotNull(message = "父级主键不能为空", groups = { Save.class, Update.class })
    private Long parentId;

    /**
     * 父级部门路径（存储所有父级部门id，‘-’分割）
     */
    @NotNull(message = "父级部门路径不能为空", groups = { Save.class, Update.class })
    private String parentPath;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { Save.class, Update.class })
    private String name;

    /**
     * 业务类型
     */
    @NotNull(message = "业务类型不能为空", groups = { Save.class, Update.class })
    private Integer businessType;

    /**
     * 排序等级
     */
    @NotNull(message = "排序等级不能为空", groups = { Save.class, Update.class })
    private Integer sort;

    /**
     * 状态[0-可用 1-禁用]
     */
    private Integer status;


}
